﻿using Entitas;
using UnityEngine;

public sealed class VelocityComponent : IComponent
{
    public Vector3 value;
    public float max;

    public void Truncate()
    {
        if (value.magnitude > max)
        {
            value = value.normalized * max;
        }
    }
}
